package com.ccc.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Manager entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "manager")
public class Manager implements java.io.Serializable {

	// Fields

	private Integer managerId;
	private String manager;
	private String managerPass;

	// Constructors

	/** default constructor */
	public Manager() {
	}

	/** full constructor */
	public Manager(String manager, String managerPass) {
		this.manager = manager;
		this.managerPass = managerPass;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "managerId", unique = true, nullable = false)
	public Integer getManagerId() {
		return this.managerId;
	}

	public void setManagerId(Integer managerId) {
		this.managerId = managerId;
	}

	@Column(name = "manager", nullable = false, length = 50,unique=true)
	public String getManager() {
		return this.manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	@Column(name = "managerPass", nullable = false, length = 50)
	public String getManagerPass() {
		return this.managerPass;
	}

	public void setManagerPass(String managerPass) {
		this.managerPass = managerPass;
	}

}